/********************************
Scoping and the Scope Chain
*/

var a = 'leihou ';
first();

function first() {
    var b = 'Java';
    second();

    function second() {
        var c = 'JavaScript';
        third();
    }
}

function third() {
    var d = 'Python';
    console.log(a + b + c + d);     // b and c not defined
}

